﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Windows.Forms;


namespace ODM_AddIn
{
    public class AlternativeSetupButton : ESRI.ArcGIS.Desktop.AddIns.Button
    {
        public AlternativeSetupButton()
        {
        }

        protected override void OnClick()
        {
            if (ODM_Code.rUtils.CheckInit() == true)
            {
                ODM_Code.Forms.AlternativeSetupForm asf = new ODM_Code.Forms.AlternativeSetupForm();
                asf.Activate();
                asf.ShowDialog();
                asf.BringToFront();
            }
            else
            {
                MessageBox.Show("Please first select the analysis area by clicking the \"Select Analysis Area\" button.", "Missing Analysis Area Parameter");
            }
        }

        protected override void OnUpdate()
        {
        }
    }
}
